/**
 * Copyright (C) 2016 Juno Inc., All Rights Reserved.
 */
package com.jyl.designPattern.structure.flyWeight;

/**
 *
 * @author Long, E-mail:jyl0401@163.com
 * @date 2019年4月20日 下午6:06:23
 */
public class Test {
	
	public static void main(String[] args) {
		FlyWeightFactory flyWeightFactory = new FlyWeightFactory();
		FlyWeight f1 = flyWeightFactory.getFlyWeight("xxx");
		FlyWeight f2 = flyWeightFactory.getFlyWeight("xxx");
		f1.doSomething("x");
		f2.doSomething("y");
	}

}
